package cloudspace.stats;

import java.util.Observable;

import org.apache.log4j.Logger;


public class StatIncr extends AbstractStat
{
    protected Logger logger = Logger.getLogger( StatIncr.class );


    public StatIncr()
    {
    }


    public void update( Observable o, Object arg )
    {
        String passedKey = (String)arg;
        if ( passedKey.equals( key ) )
            value++;
    }


    public StatisticType instanceOf()
    {
        return new StatIncr();
    }


    public Long getValue()
    {
        return value;
    }

}
